home *** CD-ROM | disk | FTP | other *** search
- #
- # File: OSAPlugIn.make
- #
- # Contains: Makefile for OSAPlugIn part
- #
- # Written by: Sue Dumont
- #
- # Copyright: © 1994-1995 by Apple Computer, Inc., all rights reserved.
- #
-
- #---------------------------------------------------------------------------
- # PROJECT VARIABLES
- #---------------------------------------------------------------------------
-
- TargetName = OSAPlugIn
- TargetNameILink = {TargetName} (68k)
- TargetNamePPCLink = {TargetName} (PPC)
- TargetNameFat = {TargetName} (fat)
-
- TargetCreatorType = PUNR
-
- SourceDir = {TargetDir}OSAPlugIn:
- ScriptRunnerDir = {TargetDir}Source:
-
- AdditionalIncludes = -i "{SourceDir}" -i "{ScriptRunnerDir}"
-
-
- #---------------------------------------------------------------------------
- # CFM/PEF Version Numbers
- #---------------------------------------------------------------------------
- # For detailed instructions on proper CFM/PEF version numbering, see
- # Code Fragment Chapter (pg 3-7), Inside Macintosh: PowerPC System Software
- #---------------------------------------------------------------------------
-
- CurrentLibraryVersion = 0x01008000 # 1.0 Final
- LibraryExportsVersion = 0x00000000 # 0.0
- LibraryCodeVersion = 0x00000000 # 0.0
-
- #---------------------------------------------------------------------------
- # DIRECTORY DEPENDENCIES
- #---------------------------------------------------------------------------
-
- "{TargetDir}" ƒ "{SourceDir}"
- "{ObjectsDir}" ƒ "{SourceDir}"
- "{ObjectsDir}" ƒ "{ODUtilsImplDir}"
-
- #---------------------------------------------------------------------------
- # ROOT TARGET
- #---------------------------------------------------------------------------
-
- BUILDPPCLINK ƒ ∂
- "{CppPrecompiledHeaders}" ∂
- "{TargetDir}{TargetNamePPCLink}" ∂
- "{SourceDir}ScriptRunnerAgent.exp"
-
- BUILDILINK ƒ ∂
- "{CppPrecompiledHeaders}" ∂
- "{TargetDir}{TargetNameILink}" ∂
- "{SourceDir}ScriptRunnerAgent.exp"
-
- BUILDREZ ƒ ∂
- "{ObjectsDir}{TargetName}.PPC.rsrc" ∂
- "{ObjectsDir}{TargetName}.68k.rsrc"
-
- BUILDIDL ƒ ∂
- "{SourceDir}ScriptRunnerAgent.xih" ∂
- "{SourceDir}ScriptRunnerAgent.xh" ∂
- "{SourceDir}ScriptRunnerAgent.exp"
-
- #---------------------------------------------------------------------------
- # FILE LIST VARIABLES
- #---------------------------------------------------------------------------
-
- OSAPlugInOBJECTS = ∂
- "{ObjectsDir}OSAPlugIn.cpp.o" ∂
- "{ObjectsDir}ScriptRunnerAgent.cpp.o" ∂
- "{ObjectsDir}ScriptRunnerAgentInit.cpp.o"
-
- OpenDocUtilityOBJECTS = ∂
- "{ObjectsDir}Except.cpp.o" ∂
- "{ObjectsDir}Crawl.cpp.o" ∂
- "{ObjectsDir}IText.cpp.o" ∂
- "{ObjectsDir}ISOStr.cpp.o" ∂
- "{ObjectsDir}ODDebug.cpp.o" ∂
- "{ObjectsDir}ODMemory.cpp.o" ∂
- "{ObjectsDir}ODNew.cpp.o" ∂
- "{ObjectsDir}ODUtils.cpp.o" ∂
- "{ObjectsDir}PlfmFile.cpp.o" ∂
- "{ObjectsDir}PasclStr.cpp.o" ∂
- "{ObjectsDir}StdTypIO.cpp.o" ∂
- "{ObjectsDir}TempObj.cpp.o" ∂
- "{ObjectsDir}UseRsrcM.cpp.o"
-
- #---------------------------------------------------------------------------
- # DEPENDENCIES
- #---------------------------------------------------------------------------
-
- # IDL
-
- "{SourceDir}"ScriptRunnerAgent.cpp ƒ ∂
- "{SourceDir}"ScriptRunnerAgent.idl
-
- "{SourceDir}"ScriptRunnerAgent.xih ƒ ∂
- "{SourceDir}"ScriptRunnerAgent.xh ∂
- "{SourceDir}"ScriptRunnerAgent.idl
-
- "{SourceDir}"ScriptRunnerAgent.xh ƒ ∂
- "{SourceDir}"ScriptRunnerAgent.idl
-
-
- # SOURCE/OBJECT CODE
-
- "{ObjectsDir}OSAPlugIn.cpp.o" ƒ ∂
- "{SourceDir}OSAPlugIn.cpp"
-
- "{ObjectsDir}ScriptRunnerAgent.cpp.o" ƒ ∂
- "{SourceDir}ScriptRunnerAgent.cpp" ∂
- "{SourceDir}ScriptRunnerAgent.xih"
-
- "{ObjectsDir}ScriptRunnerAgentInit.cpp.o" ƒ ∂
- "{SourceDir}ScriptRunnerAgentInit.cpp"
-
- #---------------------------------------------------------------------------
- # BUILD LIBRARIES
- #---------------------------------------------------------------------------
-
- # --- 68k Link ---
-
- "{TargetDir}{TargetNameILink}" ƒƒ {OSAPlugInOBJECTS} ∂
- {OpenDocUtilityOBJECTS} ∂
- "{SourceDir}ScriptRunnerAgent.exp"
- Echo Linking: {TargetNameILink}
- {LinkTool} ∂
- -export `ConvertExportList "{SourceDir}ScriptRunnerAgent.exp"`,ODShellPlugInInstall ∂
- {ILinkOptions} ∂
- {ILinkShLibOptions} ∂
- -vercur {CurrentLibraryVersion} ∂
- -verdef {LibraryExportsVersion} ∂
- -verimp {LibraryCodeVersion} ∂
- {ShLibPreLibraries} ∂
- {OSAPlugInOBJECTS} ∂
- {OpenDocUtilityOBJECTS} ∂
- "{ODCFMLibrariesDir}OpenDoc Core.stub" ∂
- "{ODCFMLibrariesDir}OpenDoc User Interface.stub" ∂
- "{ODCFMLibrariesDir}OpenDoc Layout.stub" ∂
- "{ODCFMLibrariesDir}OpenDoc Storage.stub" ∂
- "{ODCFMLibrariesDir}Memory Manager.stub" ∂
- {ShLibPostLibraries} ∂
- -o "{ObjectsDir}{TargetNameILink}".seg
- If !{Status}
- Echo Building: {TargetNameILink}.SYM
- {SymTool} "{ObjectsDir}{TargetNameILink}".seg.NJ ∂
- -o "{TargetDir}{TargetNameILink}".SYM -sym 3.2
- Echo Building: {TargetNameILink}∂'s code∂/data fragment
- MakeFlat "{ObjectsDir}{TargetNameILink}".seg -o "{TargetDir}{TargetNameILink}"
- Echo Copying: {TargetNameILink}∂'s resources
- Echo "include ∂"{RsrcObjectsDir}{TargetName}.68k.rsrc∂";" | Rez -a -o "{TargetDir}{TargetNameILink}"
- Echo "delete 'ckid';" | Rez -a -o "{TargetDir}{TargetNameILink}"
- SetFile -a Bi -c "{TargetCreatorType}" {Targ}
- End
-
-
- # --- PowerPC Link ---
-
- "{TargetDir}{TargetNamePPCLink}" ƒƒ {OSAPlugInOBJECTS} ∂
- {OpenDocUtilityOBJECTS} ∂
- "{SourceDir}ScriptRunnerAgent.exp"
- Echo Linking: {TargetNamePPCLink}
- {LinkTool} ∂
- -export `ConvertExportList "{SourceDir}ScriptRunnerAgent.exp"`,ODShellPlugInInstall ∂
- {PPCLinkOptions} ∂
- {PPCLinkShLibOptions} ∂
- -vercur {CurrentLibraryVersion} ∂
- -verdef {LibraryExportsVersion} ∂
- -verimp {LibraryCodeVersion} ∂
- {PPCShLibPreLibraries} ∂
- {OSAPlugInOBJECTS} ∂
- {OpenDocUtilityOBJECTS} ∂
- "{ODCFMLibrariesDir}OpenDoc Core.stub" ∂
- "{ODCFMLibrariesDir}OpenDoc User Interface.stub" ∂
- "{ODCFMLibrariesDir}OpenDoc Storage.stub" ∂
- "{ODCFMLibrariesDir}OpenDoc Layout.stub" ∂
- "{ODCFMLibrariesDir}Memory Manager.stub" ∂
- {PPCShLibPostLibraries} ∂
- -o "{ObjectsDir}{TargetNamePPCLink}"
- If !{Status}
- Move "{ObjectsDir}{TargetNamePPCLink}" "{TargetDir}"
- if ( `exists "{ObjectsDir}{TargetNamePPCLink}".xcoff != ""` )
- Echo Building: {TargetNamePPCLink}.xSYM
- {SymTool} "{ObjectsDir}{TargetNamePPCLink}".xcoff ∂
- {AdditionalIncludes} -i "{ODUtilsImplDir}" ∂
- -sym on,3.2 -o "{TargetDir}{TargetNamePPCLink}".xSYM
- end
- Echo Copying: {TargetNamePPCLink}∂'s resources
- Echo "include ∂"{RsrcObjectsDir}{TargetName}.PPC.rsrc∂";" | Rez -a -o "{TargetDir}{TargetNamePPCLink}"
- Echo "delete 'ckid';" | Rez -a -o "{TargetDir}{TargetNamePPCLink}"
- SetFile -a Bi -c "{TargetCreatorType}" {Targ}
- End
-
- #---------------------------------------------------------------------------
- # REZ STEPS
- #---------------------------------------------------------------------------
-
- "{RsrcObjectsDir}{TargetName}.PPC.rsrc" ƒ ∂
- "{SourceDir}OSAPlugIn.r" ∂
- "{SourceDir}OSAPlugInDef.h" ∂
- "{SourceDir}OSAPlugInVers.h" ∂
- "{SourceDir}ScriptingPlugIn.rsrc"
- Echo Rezzing: {TargetName}.r (for PPC)
- Rez {RezOptions} {ODRezIntf} "{SourceDir}{TargetName}.r" -o {targ}
- Echo "delete 'ckid';" | Rez -a -o {Targ}
- SetFile -a i -c "{ResEditCreator}" -t "{ResEditFileType}" {Targ}
- if ( `exists "{TargetDir}{TargetNamePPCLink}" != ""` )
- Echo Copying: {TargetNamePPCLink}∂'s resources
- Echo "include ∂""{Targ}"∂";" | Rez -a -o "{TargetDir}{TargetNamePPCLink}"
- end
-
- "{RsrcObjectsDir}{TargetName}.68k.rsrc" ƒ ∂
- "{SourceDir}OSAPlugIn.r" ∂
- "{SourceDir}OSAPlugInDef.h" ∂
- "{SourceDir}OSAPlugInVers.h" ∂
- "{SourceDir}ScriptingPlugIn.rsrc"
- Echo Rezzing: {TargetName}.r (for 68k)
- Rez -d _68KBUILD_ {RezOptions} {ODRezIntf} "{SourceDir}{TargetName}.r" -o {Targ}
- Echo "delete 'ckid';" | Rez -a -o {Targ}
- SetFile -a i -c "{ResEditCreator}" -t "{ResEditFileType}" {Targ}
- if ( `exists "{TargetDir}{TargetNameILink}" != ""` )
- Echo Copying: {TargetNameILink}∂'s resources
- Echo "include ∂""{Targ}"∂";" | Rez -a -o "{TargetDir}{TargetNameILink}"
- end
-
-
-